<template>
  <div>
    <nav-bar class="navbar">
      <div slot="center">购物车({{length}})</div>
    </nav-bar>
  </div>
</template>

<script>
  import { mapGetters } from 'vuex';
  import NavBar from '@/components/common/navbar/NavBar.vue';
  export default {
    name: "ShopNavBar",
    components: {
      NavBar
    },
    computed: {
      ...mapGetters(["length"])
    }
  }
</script>

<style scoped>
  .navbar {
    background-color: var(--color-tint);
    color: #fff;
    font-weight: 700;
  }
</style>